package com.cskaoyan.controller;

import com.cskaoyan.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/03/24 14:30
 */
@RequestMapping("user")
//@Controller
//@ResponseBody
@RestController
public class UserController {

    //@ResponseBody
    @RequestMapping("query")
    public User query() {
        User user = new User();
        user.setUsername("松哥");
        user.setPassword("远志");
        return user;
    }
}
